package com.lhy.multipledatasources.mapper.secondary;// OrderMapper.java (次数据源)

import com.lhy.multipledatasources.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    Order selectByOrderNumber(@Param("orderNumber") String orderNumber);
    List<Order> selectByUserId(@Param("userId") Long userId);
    int insert(Order order);
    int updateStatus(@Param("orderNumber") String orderNumber, @Param("status") int status);
}